#import "UIImage+YLGIF.h"
#import "YLWebImageGIFCoder.h"

@implementation UIImage (YLGIF)

+ (UIImage *)yl_animatedGIFWithData:(NSData *)data {
    if (!data) {
        return nil;
    }
    return [[YLWebImageGIFCoder sharedCoder] decodedImageWithData:data];
}

- (BOOL)isGIF {
    return (self.images != nil);
}

@end
